
$('.inves_edit_a1').text(($("input[name='xfss']:checked").length));
$("input[name='xfss']").click(function(){
    if($(this).is(":checked")){$(this).next().prop("disabled",true)}
    else{$(this).next().prop("disabled",false);}});

$('#inves_edit_1').click(function(){
    $(".inves_edit_1_box").css("display", "block");
});
$('#inves_edit_1_box_btn').click(function (){
    $(".inves_edit_1_box").css("display","none");
    $('.inves_edit_a1').text(($("input[name='xfss']:checked").length));
});



if($("#zhizhao01").is(":checked")){ //营业执照
    $("#zhizhaotext01").css("display","block");
}else{
    $("#zhizhaotext01").css("display","none");
}
if($("#zhizhao04").is(":checked")){//其他燃气
    $("#zhizhaotext04").css("display","block");
}else{
    $("#zhizhaotext04").css("display","none");
}
if($("#zhizhao05").is(":checked")){//其他燃气
    $("#zhizhaotext05").css("display","block");
}else{
    $("#zhizhaotext05").css("display","none");
}
if($("#zhizhaotext_cs1").is(":checked")){//
    $("#zhizhaotext_cs_box1").css("display","block");
}else{
    $("#zhizhaotext_cs_box1").css("display","none");
}


if($("#zhizhaotext_cs2").is(":checked")){//
    $("#zz_cs_box1").css("display","block");
}else{
    $("#zz_cs_box1").css("display","none");
}


if($("#zz_cs_box1btn1").is(":checked")){//
    $("#zhizhaotext_cs_box2").css("display","block");
}else{
    $("#zhizhaotext_cs_box2").css("display","none");
}
if($("#zhizhao03").is(":checked")){
    $("#zhizhaotext03").css("display","block");
}else{
    $("#zhizhaotext03").css("display","none");
}

if($("#zhizhao02").is(":checked")){
    $("#zhizhaotext01").css("display","block");
}else{
    $("#zhizhaotext01").css("display","none");
}

if($("#zhizhaozz02").is(":checked")){
    $("#zhizhaotext02").css("display","block");
}else{
    $("#zhizhaotext02").css("display","none");
}


//页面加载时（复查）↑
//触发↓
//
//
$('#zhizhaotext_cs1').click(function(){   //单选按钮1
    if($("#zhizhaotext_cs1").is(":checked")){
        $("#zhizhaotext_cs_box1").css("display","block")
        $("#zz_cs_box1").css("display","none");
        $("#zz_cs_box1 input").val("");
        ;}
    if ($("#zz_cs_box1btn1").is(":selected")){
        $("#zhizhaotext_cs_box2").css("display","block");
    }else{

    }
});

$('#zhizhaotext_cs2').click(function(){   //单选按钮2
    if($("#zhizhaotext_cs2 ").is(":checked")){
        $("#zz_cs_box1").css("display","block");
        $("#zhizhao_sel_cs option").removeAttr("selected");
        $("#cycs_option").attr("selected",'selected');
        $("#zhizhaotext_cs_box1").css("display","none");
        $("#zhizhaotext_cs_box2").css("display","none");
        $("#zhizhaotext_cs_box2 input").val("");
    }
});


$('#zhizhaozz02').click(function(){
    if($("#zhizhaozz02").is(":checked")){
        $("#zhizhaotext02").css("display","block");
    }
});
$('#zhizhaozz01').click(function(){
    if($("#zhizhaozz01").is(":checked")){
        $("#zhizhaotext02").css("display","none");
    }
})
$('#zhizhaozz03').click(function(){
    if($("#zhizhaozz03").is(":checked")){
        $("#zhizhaotext02").css("display","none");
    }
});
$('#zhizhao01').click(function(){
    if($("#zhizhao01").is(":checked")){
        $("#zhizhaotext01").css("display","none");
        $("#zhizhaotext01 input").val("");
    }
});
$('#zhizhao02').click(function(){
    if($("#zhizhao02").is(":checked")){
        $("#zhizhaotext01").css("display","block");
    }
});
$('#zhizhao03').click(function(){
    if($("#zhizhao03").is(":checked")){
        $("#zhizhaotext03").css("display","block");
    }
});

$('#zhizhao04').click(function(){
    if($("#zhizhao04").is(":checked")){
        $("#zhizhaotext03").css("display","none");
        $("#zhizhaotext03 input").val("");
    }
});



$('#zhizhao_sel_cs').click(function(){   //场所
    if($("#zz_cs_box1btn1").is(":checked")){
        $("#zhizhaotext_cs_box2").css("display","block");}
    else{
        $("#zhizhaotext_cs_box2").css("display","none");
        $("#zhizhaotext_cs_box2 input").val("");
    }
});

$('#zhizhao_sel04').click(function(){
    if($("#zhizhao04").is(":checked")){
        $("#zhizhaotext04").css("display","block");}
    else{
        $("#zhizhaotext04").css("display","none");
        $("#zhizhaotext04 input").val("");
    }
});
$('#zhizhao_sel04').click(function(){
    if($("#zhizhao05").is(":checked")){
        $("#zhizhaotext05").css("display","block");}
    else{
        $("#zhizhaotext05").css("display","none");
        $("#zhizhaotext05 input").val("");
    }
});

$(document).ready(function(){
    $(function(){
        $("#zyjszg").blur(function(){
            if ($("#zyjszg").val() == "")
            {
                $("#f_zy_box1").css("display","block");

            }
            else{
                $("#f_zy_box1").css("display","none");
            }

        });
    });
    $(function(){
        $("#zyzgmc").blur(function(){
            if ($("#zyzgmc").val() == "")
            { $("#f_zy_box2").css("display","block"); }
            else{
                $("#f_zy_box2").css("display","none");
            }

        });
    });
});